<?php
/**
 * ExtMenuBaseItem class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtMenuBaseItem extends ExtMenuBaseItemBase
{
    /**
     * Gets the value of ExtJS activeClass property
     * @return String 
     */
    public function getActiveClass()
    {
    	return $this->getConfig("activeclass");
    }

    /**
     * Sets the value of ExtJS activeClass property
     * @param String $value 
     */
    public function setActiveClass($value)
    {
    	$this->setConfig("activeclass",$value);
    }

    /**
     * Gets the value of ExtJS canActivate property
     * @return Boolean 
     */
    public function getCanActivate()
    {
    	return $this->getConfig("canactivate");
    }

    /**
     * Sets the value of ExtJS canActivate property
     * @param Boolean $value 
     */
    public function setCanActivate($value)
    {
    	$this->setConfig("canactivate",$value);
    }

    /**
     * Gets the value of ExtJS clickHideDelay property
     * @return Number 
     */
    public function getClickHideDelay()
    {
    	return $this->getConfig("clickhidedelay");
    }

    /**
     * Sets the value of ExtJS clickHideDelay property
     * @param Number $value 
     */
    public function setClickHideDelay($value)
    {
    	$this->setConfig("clickhidedelay",$value);
    }

    /**
     * Gets the value of ExtJS hideOnClick property
     * @return Boolean 
     */
    public function getHideOnClick()
    {
    	return $this->getConfig("hideonclick");
    }

    /**
     * Sets the value of ExtJS hideOnClick property
     * @param Boolean $value 
     */
    public function setHideOnClick($value)
    {
    	$this->setConfig("hideonclick",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'activeclass' => 'activeClass',
            'canactivate' => 'canActivate',
            'clickhidedelay' => 'clickHideDelay',
            'hideonclick' => 'hideOnClick'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'activate' => array('sender'),
            'click' => array('sender','e'),
            'deactivate' => array('sender')
        ));


        $this->setXType('menubaseitem');
        $this->setXClass('Ext.menu.BaseItem');
    }    
}
?>